﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Manage.Domain.Entities
{
    /// <summary>
    /// 出入库 + 批次通用操作表
    /// </summary>
    public class Stock_operation_batch
    {
        /// <summary>
        /// 操作记录 ID（主键）
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 产品编号（外键）
        /// </summary>
        public string Product_id { get; set; }
        /// <summary>
        /// 操作日期（出入库时间）
        /// </summary>
        public DateTime Operation_date { get; set; }
        /// <summary>
        /// 入库数量
        /// </summary>
        public int In_quantity { get; set; } = 0;
        /// <summary>
        /// 出库数量
        /// </summary>
        public int Out_quantity { get; set; } = 0;
        /// <summary>
        /// 产品批次编号
        /// </summary>
        public string? Batch_no { get; set; }
        /// <summary>
        /// 操作备注（如库位变动说明）
        /// </summary>
        public string? Remark { get; set; }
    }
}
